package cn.exrick.xboot.modules.iocr.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author 王延超
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "zjgl_service_iocr")
@TableName("zjgl_service_iocr")
@ApiModel(value = "识别入库实体类")
public class ZJGLServiceIocr extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收款类型")
    private String type;

    @ApiModelProperty(value = "地市")
    private String city;

    @CreatedDate
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "收款时间")
    private Date collectionTime;

    @ApiModelProperty(value = "金额")
    private String sum;

    @ApiModelProperty(value = "付款方")
    private String payer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "汇款单号")
    private String billNumber;

    @ApiModelProperty(value = "收款卡号")
    private String creditCardNumbers;

    @ApiModelProperty(value = "付款卡号")
    private String paymentCardNumber;

    @ApiModelProperty(value = "项目编号")
    private String projectNumber;

    @ApiModelProperty(value = "BSP项目编号")
    private String bspProjectNumber;

    @ApiModelProperty(value = "状态:1: 未认领,2: 已认领")
    private String state;

    @ApiModelProperty(value = "关联图片id")
    private String imgFileId;

    @ApiModelProperty(value = "流水号")
    private String serialNumber;

//    @Transient
//    @TableField(exist = false)
    @ApiModelProperty(value = "图片预览")
    private String imgYuLan;
}
